<script>
function action_form(){
	document.tim_mau_tin_td.submit();
	}

function tim(id){
	var tim = document.getElementById(id).value;
	//var regex=/^([0-9]*)$/;
		xmlHttp = taoXmlHttpOb();
		xmlHttp.onreadystatechange=function() 
				{ 
				if(xmlHttp.readyState==4) 
				  { 
					document.getElementById("main").innerHTML = xmlHttp.responseText;
				  } 
				}
				xmlHttp.open("GET","tim_mau_tin/kq_tim_mau_tin.php?tim="+tim,true);
			xmlHttp.send(null);
}

function clear(value){
	value = "";
}
</script>
<script>
function tim1(id){
	var tim = document.getElementById(id).value;
	//var regex=/^([0-9]*)$/;
		xmlHttp = taoXmlHttpOb();
		xmlHttp.onreadystatechange=function() 
				{ 
				if(xmlHttp.readyState==4) 
				  { 
					document.getElementById("kq").innerHTML = xmlHttp.responseText;
				  } 
				}
				xmlHttp.open("GET","tim_mau_tin/kq_tim_mau_tin_td.php?tim="+tim,true);
			xmlHttp.send(null);
}

function tim2(id){
	var tim = document.getElementById(id).value;
	//var regex=/^([0-9]*)$/;
		xmlHttp = taoXmlHttpOb();
		xmlHttp.onreadystatechange=function() 
				{ 
				if(xmlHttp.readyState==4) 
				  { 
					document.getElementById("kq").innerHTML = xmlHttp.responseText;
				  } 
				}
				xmlHttp.open("GET","tim_mau_tin/kq_tim_mau_tin_rv.php?tim="+tim,true);
			xmlHttp.send(null);
}
</script>
<?php
	if(isset($_POST['txt_tim'])){
		$tim = $_POST['txt_tim'];
	}
?>
<div class="gadget">
  <div class="search">
	<!--<form name="tim_mau_tin_td" method="post">-->
	  <span>
	  <input type="text" value="Tìm kiếm..." name="s" id="s" />
	  <input name="searchsubmit" type="image" src="images/search.gif" value="Go" id="searchsubmit" class="btn" onclick="tim('s')" />
	  </span>
	<!--</form>-->
  </div>
</div>